Optimal. Leaf size=84 \[ -\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {b d^2 \csc ^{-1}(c x)}{2 e}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b d \tanh ^{-1}\left (\sqrt {1-\frac {1}{c^2 x^2}}\right )}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.643, Rules used = {5334, 1582,
1410, 1821, 858, 222, 272, 65, 214} \begin {gather*} \frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b d \tanh ^{-1}\left (\sqrt {1-\frac {1}{c^2 x^2}}\right )}{c}-\frac {b e x \sqrt {1-\frac {1}{c^2 x^2}}}{2 c}+\frac {b d^2 \csc ^{-1}(c x)}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 222
Rule 272
Rule 858
Rule 1410
Rule 1582
Rule 1821
Rule 5334
Rubi steps
\begin {align*} \int (d+e x) \left (a+b \sec ^{-1}(c x)\right ) \, dx &=\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b \int \frac {(d+e x)^2}{\sqrt {1-\frac {1}{c^2 x^2}} x^2} \, dx}{2 c e}\\ &=\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b \int \frac {\left (e+\frac {d}{x}\right )^2}{\sqrt {1-\frac {1}{c^2 x^2}}} \, dx}{2 c e}\\ &=\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}+\frac {b \text {Subst}\left (\int \frac {(e+d x)^2}{x^2 \sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c e}\\ &=-\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b \text {Subst}\left (\int \frac {-2 d e-d^2 x}{x \sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c e}\\ &=-\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}+\frac {(b d) \text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{c}+\frac {\left (b d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{2 c e}\\ &=-\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {b d^2 \csc ^{-1}(c x)}{2 e}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}+\frac {(b d) \text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x}{c^2}}} \, dx,x,\frac {1}{x^2}\right )}{2 c}\\ &=-\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {b d^2 \csc ^{-1}(c x)}{2 e}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-(b c d) \text {Subst}\left (\int \frac {1}{c^2-c^2 x^2} \, dx,x,\sqrt {1-\frac {1}{c^2 x^2}}\right )\\ &=-\frac {b e \sqrt {1-\frac {1}{c^2 x^2}} x}{2 c}+\frac {b d^2 \csc ^{-1}(c x)}{2 e}+\frac {(d+e x)^2 \left (a+b \sec ^{-1}(c x)\right )}{2 e}-\frac {b d \tanh ^{-1}\left (\sqrt {1-\frac {1}{c^2 x^2}}\right )}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 114, normalized size = 1.36 \begin {gather*} a d x+\frac {1}{2} a e x^2-\frac {b e x \sqrt {\frac {-1+c^2 x^2}{c^2 x^2}}}{2 c}+b d x \sec ^{-1}(c x)+\frac {1}{2} b e x^2 \sec ^{-1}(c x)-\frac {b d \sqrt {1-\frac {1}{c^2 x^2}} x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{\sqrt {-1+c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 140, normalized size = 1.67
method | result | size |
derivativedivides | \(\frac {\frac {a \left (d \,c^{2} x +\frac {1}{2} e \,c^{2} x^{2}\right )}{c}+b \,\mathrm {arcsec}\left (c x \right ) d c x +\frac {b c \,\mathrm {arcsec}\left (c x \right ) e \,x^{2}}{2}-\frac {b \sqrt {c^{2} x^{2}-1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c x}-\frac {b \left (c^{2} x^{2}-1\right ) e}{2 c^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}}{c}\) | \(140\) |
default | \(\frac {\frac {a \left (d \,c^{2} x +\frac {1}{2} e \,c^{2} x^{2}\right )}{c}+b \,\mathrm {arcsec}\left (c x \right ) d c x +\frac {b c \,\mathrm {arcsec}\left (c x \right ) e \,x^{2}}{2}-\frac {b \sqrt {c^{2} x^{2}-1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c x}-\frac {b \left (c^{2} x^{2}-1\right ) e}{2 c^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}}{c}\) | \(140\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 95, normalized size = 1.13 \begin {gather*} \frac {1}{2} \, a x^{2} e + a d x + \frac {1}{2} \, {\left (x^{2} \operatorname {arcsec}\left (c x\right ) - \frac {x \sqrt {-\frac {1}{c^{2} x^{2}} + 1}}{c}\right )} b e + \frac {{\left (2 \, c x \operatorname {arcsec}\left (c x\right ) - \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right ) + \log \left (-\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )\right )} b d}{2 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.52, size = 135, normalized size = 1.61 \begin {gather*} \frac {a c^{2} x^{2} e + 2 \, a c^{2} d x + 2 \, b c d \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - \sqrt {c^{2} x^{2} - 1} b e + {\left (2 \, b c^{2} d x - 2 \, b c^{2} d + {\left (b c^{2} x^{2} - b c^{2}\right )} e\right )} \operatorname {arcsec}\left (c x\right ) + 2 \, {\left (2 \, b c^{2} d + b c^{2} e\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right )}{2 \, c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.46, size = 104, normalized size = 1.24 \begin {gather*} a d x + \frac {a e x^{2}}{2} + b d x \operatorname {asec}{\left (c x \right )} + \frac {b e x^{2} \operatorname {asec}{\left (c x \right )}}{2} - \frac {b d \left (\begin {cases} \operatorname {acosh}{\left (c x \right )} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- i \operatorname {asin}{\left (c x \right )} & \text {otherwise} \end {cases}\right )}{c} - \frac {b e \left (\begin {cases} \frac {\sqrt {c^{2} x^{2} - 1}}{c} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\\frac {i \sqrt {- c^{2} x^{2} + 1}}{c} & \text {otherwise} \end {cases}\right )}{2 c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1547 vs.
\(2 (74) = 148\).
time = 0.75, size = 1547, normalized size = 18.42 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.90, size = 77, normalized size = 0.92 \begin {gather*} \frac {a\,x\,\left (2\,d+e\,x\right )}{2}-\frac {b\,d\,\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {1}{c^2\,x^2}}}\right )}{c}+b\,d\,x\,\mathrm {acos}\left (\frac {1}{c\,x}\right )-\frac {b\,e\,x\,\left (\sqrt {1-\frac {1}{c^2\,x^2}}-c\,x\,\mathrm {acos}\left (\frac {1}{c\,x}\right )\right )}{2\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________